from machine import ADC
import time

# light sensor  A0
adc = ADC(0)
while True:
    print(adc.read())
    time.sleep_ms(100)